// token 的 key
const KEY = 'my-token-element-pc'

// 获取 token
export const getToken = () => {
  return localStorage.getItem(KEY)
}
// 设置 token
export const setToken = (token) => {
  localStorage.setItem(KEY, token)
}
// 删除 token
export const delToken = () => {
  localStorage.removeItem(KEY)
}

// 按需导出，如果引用也是按需引入，需要加{ }
